Optimal. Leaf size=83 \[ -\frac {\log \left (c \left (d+e x^2\right )^p\right )}{2 g \left (f+g x^2\right )}+\frac {e p \log \left (d+e x^2\right )}{2 g (e f-d g)}-\frac {e p \log \left (f+g x^2\right )}{2 g (e f-d g)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {2475, 2395, 36, 31} \[ -\frac {\log \left (c \left (d+e x^2\right )^p\right )}{2 g \left (f+g x^2\right )}+\frac {e p \log \left (d+e x^2\right )}{2 g (e f-d g)}-\frac {e p \log \left (f+g x^2\right )}{2 g (e f-d g)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 36
Rule 2395
Rule 2475
Rubi steps
\begin {align*} \int \frac {x \log \left (c \left (d+e x^2\right )^p\right )}{\left (f+g x^2\right )^2} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{(f+g x)^2} \, dx,x,x^2\right )\\ &=-\frac {\log \left (c \left (d+e x^2\right )^p\right )}{2 g \left (f+g x^2\right )}+\frac {(e p) \operatorname {Subst}\left (\int \frac {1}{(d+e x) (f+g x)} \, dx,x,x^2\right )}{2 g}\\ &=-\frac {\log \left (c \left (d+e x^2\right )^p\right )}{2 g \left (f+g x^2\right )}-\frac {(e p) \operatorname {Subst}\left (\int \frac {1}{f+g x} \, dx,x,x^2\right )}{2 (e f-d g)}+\frac {\left (e^2 p\right ) \operatorname {Subst}\left (\int \frac {1}{d+e x} \, dx,x,x^2\right )}{2 g (e f-d g)}\\ &=\frac {e p \log \left (d+e x^2\right )}{2 g (e f-d g)}-\frac {\log \left (c \left (d+e x^2\right )^p\right )}{2 g \left (f+g x^2\right )}-\frac {e p \log \left (f+g x^2\right )}{2 g (e f-d g)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 63, normalized size = 0.76 \[ \frac {\frac {e p \left (\log \left (d+e x^2\right )-\log \left (f+g x^2\right )\right )}{e f-d g}-\frac {\log \left (c \left (d+e x^2\right )^p\right )}{f+g x^2}}{2 g} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.70, size = 91, normalized size = 1.10 \[ \frac {{\left (e g p x^{2} + d g p\right )} \log \left (e x^{2} + d\right ) - {\left (e g p x^{2} + e f p\right )} \log \left (g x^{2} + f\right ) - {\left (e f - d g\right )} \log \relax (c)}{2 \, {\left (e f^{2} g - d f g^{2} + {\left (e f g^{2} - d g^{3}\right )} x^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.21, size = 182, normalized size = 2.19 \[ -\frac {{\left (x^{2} e + d\right )} g p e \log \left (x^{2} e + d\right ) - {\left (x^{2} e + d\right )} g p e \log \left ({\left (x^{2} e + d\right )} g - d g + f e\right ) + d g p e \log \left ({\left (x^{2} e + d\right )} g - d g + f e\right ) - f p e^{2} \log \left ({\left (x^{2} e + d\right )} g - d g + f e\right ) + d g e \log \relax (c) - f e^{2} \log \relax (c)}{2 \, {\left ({\left (x^{2} e + d\right )} d g^{3} - d^{2} g^{3} - {\left (x^{2} e + d\right )} f g^{2} e + 2 \, d f g^{2} e - f^{2} g e^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.54, size = 371, normalized size = 4.47 \[ -\frac {\ln \left (\left (e \,x^{2}+d \right )^{p}\right )}{2 \left (g \,x^{2}+f \right ) g}-\frac {2 e g p \,x^{2} \ln \left (-e \,x^{2}-d \right )-2 e g p \,x^{2} \ln \left (g \,x^{2}+f \right )-i \pi d g \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )+i \pi d g \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}+i \pi d g \,\mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}-i \pi d g \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{3}+i \pi e f \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )-i \pi e f \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}-i \pi e f \,\mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}+i \pi e f \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{3}+2 e f p \ln \left (-e \,x^{2}-d \right )-2 e f p \ln \left (g \,x^{2}+f \right )+2 d g \ln \relax (c )-2 e f \ln \relax (c )}{4 \left (g \,x^{2}+f \right ) \left (d g -e f \right ) g} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.46, size = 74, normalized size = 0.89 \[ \frac {e p {\left (\frac {\log \left (e x^{2} + d\right )}{e f - d g} - \frac {\log \left (g x^{2} + f\right )}{e f - d g}\right )}}{2 \, g} - \frac {\log \left ({\left (e x^{2} + d\right )}^{p} c\right )}{2 \, {\left (g x^{2} + f\right )} g} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.46, size = 80, normalized size = 0.96 \[ -\frac {\ln \left (c\,{\left (e\,x^2+d\right )}^p\right )}{2\,g\,\left (g\,x^2+f\right )}-\frac {e\,p\,\mathrm {atan}\left (\frac {x^2\,\left (d\,g\,1{}\mathrm {i}-e\,f\,1{}\mathrm {i}\right )}{2\,d\,f+d\,g\,x^2+e\,f\,x^2}\right )\,1{}\mathrm {i}}{d\,g^2-e\,f\,g} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________